<!DOCTYPE HTML><html>
<head>
<? echo $h->meta($title, $kwd, $dpn); ?>
<? require_once("lib.php"); ?>
</head>
<body id="">
<? include_once("header.php"); ?>
<div id="wrap">
	<div class="breadcrumb">
		<a href="./"><?=WEB_INDEX_PAGE?></a> &gt; <span><?=$cate_name?></span>
	</div><!--breadcrumb end-->
	<div id="" class="w180 left">
		<? require 'member_menu.php' ?>
	</div><!--. w220-->
		<div id="" class="right w760">
			<div class="">
				<div class="h2news">
					<h2><?=$cate_name?></h2>
				</div>
				<div class="content">
					<div class="member_dash" style="background:url(upload/member.jpg) no-repeat;">
						<p><strong class="font14px orange"><?=WEB_WELCOME?> <?=$info['nickname']?>!&nbsp; </strong><?=WEB_LAST_LOGIN_TIME?>: <?=$info['last_login_time']?></p>
						<div class="px20"></div>
						<table class="member">
							<tr><td width="120" class="tright"><?=WEB_ACCOUNT?>:</td><td><?=$info['email']?></td></tr>
							<tr><td class="tright"><?=WEB_ACCOUNT_SAFETY?>:</td><td>
								<? if($info['is_verified']){ ?><span class="icon_ok"><?=WEB_EMAIL_ALREADY_VERIFIED?></span><? } else { ?>
								<div class="ver1"><?=WEB_EMAIL_NOT_YET_VERIFIED?> (<a onclick="send_code()" class="blue"><?=WEB_VERIFY_NOW?>)</a></div>
								<div class="ver2 hide"><?=WEB_INPUT_VERIFICATION_CODE?>: <input class="g code" name="code" maxlength="6" /> <a class="button_blue" onclick="check_code()" ><?=WEB_SUBMIT?></a></div>
								<div class="ver3 hide"><span class="blue"><?=WEB_SENDING_VERIFICATON_CODE?>...</span></div>
								<div class="ver4 hide"><span class="blue"><?=WEB_VERIFYING?>...</span></div>
								<script type="text/javascript">
								function send_code(){
									$('.ver1').addClass('hide');
									$('.ver3').removeClass('hide');
									$.post("ajax_verify.php",{'email':'<?=$info["email"]?>'}, function(data){
										//alert(data);
										if(data=='1'){
											$('.ver3').addClass('hide');
											$('.ver2').removeClass('hide');
											$.notice('<?=WEB_VERIFICATION_CODE_SENT?>');
										}
										else {
											$.notice('<?=WEB_VERIFICATION_CODE_SENT_FAILED?>');
											$('.ver3').addClass('hide');$('.ver1').removeClass('hide');
										}
									})
								}
								function check_code(){
									$('.ver2').addClass('hide');
									$('.ver4').removeClass('hide');
									var key=$('.code').val();
									$.post("ajax_verify.php",{'email':'<?=$info["email"]?>','key':key}, function(data){
										if(data=='1'){
											$.cookie('message','<?=WEB_VERIFICATION_CODE_VERIFIED?>');
											top.location.reload();
										}
										else {
											$.cookie('message','<?=WEB_VERIFICATION_CODE_VERIFIED_FAILED?>');
											top.location.reload();
										}
									})
								}
								</script>
								<? } ?>
								</td>
							</tr>
							<?if(is_module_enabled($option_module['point'])) {?>
<!--							<tr><td class="tright">--><?//=WEB_MY_CREDIT?><!--: </td><td><strong class="orange">--><?//=$info['accumulated_point']?><!--</strong></td></tr>-->
							<tr><td class="tright"><?=WEB_AVAILABLE_POINT?>: </td><td><strong class="orange"><?=$info['usable_point']?></strong></td></tr>
							<?}?>
                            <tr><td class="tright"><?=WEB_WALLET_USABLE_BALANCE_MY?>: </td><td><strong class="orange"><?=$currency_code.' '.$info['usable_balance'].' '.$currency_sign?></strong></td></tr>
						</table>
					</div><div class="px20"></div>
					<div class="tip">
						<?=WEB_ORDER_CENTER?>: &nbsp;
						<a href="myorder.html"><?=WEB_PROCESSING_ORDER?> (<strong class="orange"><?=$num_handling_order?></strong>)</a> &nbsp; 
						<?if(is_module_enabled($option_module['product_review'])) {?>
						<a href="myorder.html"><?=WEB_PRODUCT_PENDING_FOR_REVIEW?> (<strong class="orange"><?=$num_need_review_item?></strong>)</a>
						<?}?>
					</div>
				</div>
				<div class="map"></div>
				<div class="clear"></div>
			</div><!--. featured product-->
	</div><!--# featured_and_ad_right-->
		<div class="clear"></div>
	<div class="px20"></div>
	<div class="clear"></div>
</div>
<? include("footer.php"); ?>
</body>
</html>